package cn.edu.scau.cmi.chenzehan.abstractFactory.factory;

import cn.edu.scau.cmi.chenzehan.abstractFactory.insurance.Insurance;

public abstract class AbstractFactory {

	
	public  static AbstractFactory getFactory(String FactoryType) {
		switch (FactoryType) {
		case "中国人寿保险(PICC)":
			return new PICCFactory();
		case "平安保险(PingAn)":
			return new PingAnFactory();
		}
		return null;
	}
	public  String getMessage() {
		return null;
	}
	public abstract AbstractFactory getDetailFactory(String value);
	public abstract Insurance creatProduct();
	
}
